package com.sinothk.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 用户信息
 * @Author: Liangyt
 * @Date:   2022-03-30
 * @Version: V1.0
 */
@Data
@TableName("biz_user_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="biz_user_info对象", description="用户信息")
public class BizUserInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**用户ID*/
	@Excel(name = "用户ID", width = 15)
    @ApiModelProperty(value = "用户ID")
    private String uid;
	/**账号*/
	@Excel(name = "账号", width = 15)
    @ApiModelProperty(value = "账号")
    private String username;
	/**真实姓名*/
	@Excel(name = "真实姓名", width = 15)
    @ApiModelProperty(value = "真实姓名")
    private String realname;
	/**头像*/
	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private String avatar;
	/**生日*/
	@Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;
	/**性别(0-默认未知,1-男,2-女)*/
	@Excel(name = "性别(0-默认未知,1-男,2-女)", width = 15)
    @ApiModelProperty(value = "性别(0-默认未知,1-男,2-女)")
    private Integer sex;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String phone;
	/**认证状态：0未认证1个人认证2商家认证3个人转商家*/
	@Excel(name = "认证状态：0未认证1个人认证2商家认证3个人转商家", width = 15)
    @ApiModelProperty(value = "认证状态：0未认证1个人认证2商家认证3个人转商家")
    private Integer authState;
	/**店铺状态：0没有店铺1有店铺*/
	@Excel(name = "店铺状态：0没有店铺1有店铺", width = 15)
    @ApiModelProperty(value = "店铺状态：0没有店铺1有店铺")
    private Integer hasStore;
	/**店铺或服务ID*/
	@Excel(name = "店铺或服务ID", width = 15)
    @ApiModelProperty(value = "店铺或服务ID")
    private String storeId;
	/**店铺或服务名称*/
	@Excel(name = "店铺或服务名称", width = 15)
    @ApiModelProperty(value = "店铺或服务名称")
    private String storeName;
	/**店铺Logo*/
	@Excel(name = "店铺Logo", width = 15)
    @ApiModelProperty(value = "店铺Logo")
    private String storeLogo;
	/**纬度*/
	@Excel(name = "纬度", width = 15)
    @ApiModelProperty(value = "纬度")
    private Double locLat;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private Double locLng;
	/**省区*/
	@Excel(name = "省区", width = 15)
    @ApiModelProperty(value = "省区")
    private String locProvince;
	/**市州*/
	@Excel(name = "市州", width = 15)
    @ApiModelProperty(value = "市州")
    private String locCity;
	/**区县*/
	@Excel(name = "区县", width = 15)
    @ApiModelProperty(value = "区县")
    private String locDistrict;
	/**镇街*/
	@Excel(name = "镇街", width = 15)
    @ApiModelProperty(value = "镇街")
    private String locStreet;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**登录时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "登录时间")
    private Date loginTime;

    /**vip等级:0普通，1，2，3*/
    @ApiModelProperty(value = "vip等级:0普通，1，2，3")
    private Integer vipLevel;

    /**最新一条博客*/
    @ApiModelProperty(value = "最新一条博客")
    private String blogLatestJson;

    /**获赞数*/
    @ApiModelProperty(value = "获赞数")
    private Long beLikedNum;

    /**关注数*/
    @ApiModelProperty(value = "关注数")
    private Long followNum;

    /**粉丝数*/
    @ApiModelProperty(value = "粉丝数")
    private Long fansNum;

    /**用户类型:0注册用户1系统用户*/
    @ApiModelProperty(value = "用户类型:0注册用户1系统用户")
    private Integer userType;

}
